{
	"products":[
		<#list products as product>
		{
			"id":"${product.id}",
			"prod_sku":"${product.prod_sku}",
			"quantity":${product.quantity},
			"filename":"${product.filename}",
			"name":"${product.name?j_string}",
            "description":"${product.description?j_string}",
            "subproducts":[
            	<#list product.subproducts as sub>
            	{
				"id":"${sub.id}",
				"name":"${sub.name?j_string}",
				"regular_price":${sub.regular_price},
				"sale_price":"${sub.sale_price}",
				"last_update":"${sub.last_update}"
            	}
            	<#if sub_has_next>,</#if>
        		</#list>
            ]
		}
		<#if product_has_next>,</#if>
        </#list>
	],
	"category":{
        "id":"${category.id}",
        "name":"${category.name?j_string}",
        "img":"${category.img?j_string}"
    }
}